import request from '@/utils/request'

// 查询范围1分类(按照温室气体类型）列表
export function listGreenhouseGasType(query) {
  return request({
    url: '/result/greenhouseGasType/list',
    method: 'get',
    params: query
  })
}

// 查询范围1分类(按照温室气体类型）详细
export function getGreenhouseGasType(id) {
  return request({
    url: '/result/greenhouseGasType/' + id,
    method: 'get'
  })
}

// 新增范围1分类(按照温室气体类型）
export function addGreenhouseGasType(data) {
  return request({
    url: '/result/greenhouseGasType',
    method: 'post',
    data: data
  })
}

// 修改范围1分类(按照温室气体类型）
export function updateGreenhouseGasType(data) {
  return request({
    url: '/result/greenhouseGasType',
    method: 'put',
    data: data
  })
}

// 删除范围1分类(按照温室气体类型）
export function delGreenhouseGasType(id) {
  return request({
    url: '/result/greenhouseGasType/' + id,
    method: 'delete'
  })
}

// 导出范围1分类(按照温室气体类型）
export function exportGreenhouseGasType(query) {
  return request({
    url: '/result/greenhouseGasType/export',
    method: 'get',
    params: query
  })
}